package com.example.lottery_system.controller.param;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.springframework.validation.annotation.Validated;

import java.util.List;

@Data
public class ActivityParam {
    @NotBlank(message = "活动名不能为空!")
    private String activityName;

    @NotBlank(message = "活动描述不能为空!")
    private String description;

    @NotEmpty(message = "活动奖品不能为空!")
    @Valid
    private List<ActivityPrizeParam> activityPrizeList;

    @NotEmpty(message = "活动人员不能为空")
    @Valid
    private List<ActivityUserParam> activityUserList;

}
